package com.army.study.database;

import ohos.data.orm.OrmObject;
import ohos.data.orm.annotation.Entity;
import ohos.data.orm.annotation.PrimaryKey;

/**
 * 传感器数据存储表
 */
@Entity(tableName = "sensor")
public class Sensor extends OrmObject {

    // 日期
    @PrimaryKey
    private String date;
    // 步数
    private int stepsValue;


    public Sensor() {
    }

    public Sensor(String date, int stepsValue) {
        this.date = date;
        this.stepsValue = stepsValue;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public int getStepsValue() {
        return stepsValue;
    }

    public void setStepsValue(int stepsValue) {
        this.stepsValue = stepsValue;
    }
}
